<!DOCTYPE HTML>
<html  xmlns:th="http://www.thymeleaf.org">
<head th:include="_meta :: header">
    <title>查看驳回理由</title>
</head>
<body>
<div style="margin: 10px">驳回理由是：</div>
 <input type="text" name="reason"  readonly="readonly" class="layui-input" style="width:80%;margin-left:10px" th:value="${reason}">
<!--    <input type="text" name="id" th:value="${reason}" hidden/>-->



<!--_footer 作为公共模版分离出去-->
<div th:replace="_footer :: footerjs">
</div>
<!--/_footer 作为公共模版分离出去-->
<script>
    layui.use(['laydate','form'], function(){
        var laydate = layui.laydate;
        var form = layui.form;
        // 监听全选
        form.on('checkbox(checkall)', function(data){

            if(data.elem.checked){
                $('tbody input').prop('checked',true);
            }else{
                $('tbody input').prop('checked',false);
            }
            form.render('checkbox');
        });
        form.on('select(selectchange)', function(data){
            console.log(data.value); //得到被选中的值
            var pageNo = $('#pageNo');
            var Form = $('form')
            pageNo.val(1);
            Form.submit();
            form.render('select');
        });
        //日期时间范围选择
        laydate.render({

        });
        lay('.timeSpace').each(function(){
            laydate.render({
                elem: this
                ,type: 'datetime'
                ,range: true //或 range: '~' 来自定义分割字符
            });
        });
    });



    // 表单提交
    $(function(){
        // var idsBus = $('input[id="idsBus"]').val();
        // console.log("allot -->"+idsBus)
        //  var downUsername = $('option[class="downUsername"]').val();
        // console.log("downUsername--> {}",downUsername)
        //  if(downUsername.trim().length == 0){
        //      layer.msg("您还未选择要分配的下属");
        //      return;
        //  }else{
        $("#form-audioVideo-refuse").validate({
            submitHandler:function(form){
                $(form).ajaxSubmit({
                    type: 'GET',
                    url: "/admin/video/refuseAudioVideo",
                    success: function(data){
                        if(data.code == "1"){
                            selfmsg('拒绝成功!',1,function(){
                                var index = parent.layer.getFrameIndex(window.name);
                                parent.location.reload();
                                parent.layer.close(index);
                            });
                        }else{
                            selfmsg('拒绝失败!');
                        }
                    },
                    error: function(){
                        selfmsg('拒绝异常!',5);
                    }
                });
            }
        });
        // }
    });


</script>
</body>
</html>